str1 = input("输入句子：")
word = input("查找的单词：")
str1 = str1.replace(',',' ').replace('.',' ')
w = str1.split()
count = w.count(word)
print(count)
